﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZSZ.Service.Entity
{
   public class AdminUserEntity:BaseEntity
    {
        public string Name { get; set; }
        public string PhoneNum { get; set; }
        public string PasswordYan { get; set; }
        public string Email { get; set; }
        public string PasswordHash { get; set; }
        public long? CityId { get; set; }
        public virtual CityEntity City { get; set; }
        /// <summary>
        /// 登录错误次数
        /// </summary>
        public int LoginErrorTotal { get; set; } = 0;
        /// <summary>
        /// 最后登录错误时间
        /// </summary>
        public DateTime? LastLoginErrorTime { get; set; }
        public virtual ICollection<RoleEntity> Roles { get; set; } = new List<RoleEntity>();
    }
}
